#!/bin/bash

curl -O https://oss.liufq.com/tools/images/torna-amd64.tar

docker load -i torna-amd64.tar

mkdir /opt/torna && wget https://gitee.com/durcframework/torna/raw/master/install/application.properties -O /opt/torna/application.properties
mkdir -p /opt/torna && vi /opt/torna/application.properties

docker run --name torna --restart=always --network=host \
  -p 7700:7700 \
  -e JAVA_OPTS="-server -Xms512m -Xmx512m" \
  -v /opt/torna/application.properties:/torna/config/application.properties \
  -d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:latest

docker run --name torna --restart=always --network=host \
  -e JAVA_OPTS="-server -Xms512m -Xmx512m" \
  -v /opt/torna/application.properties:/torna/config/application.properties \
  -d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:latest

# 上传文档
mvn -Dfile.encoding=UTF-8 smart-doc:torna-rest -pl :shop-web -am